package com.summer.campussct.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 车辆营销表
 * </p>
 *
 * @author Mr.Chen
 * @since 2024-04-21
 */
@Data
public class VehicleMarket implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long vid;

    /**
     * 关联的个人或商户
     */
    @ApiModelProperty(required = true, value = "关联的个人或商户")
    private Long uid;

    @ApiModelProperty("关联的分类ID")
    private Long campusOrShopId;

    /**
     * 原价
     */
    @ApiModelProperty("原价")
    private BigDecimal originalPrice;

    /**
     * 现价
     */
    @NotNull(message = "现价不能为空")
    @ApiModelProperty(required = true, value = "现价")
    private BigDecimal currentPrice;

    /**
     * 入库时间
     */
    @ApiModelProperty("入库时间，格式为yyyy-MM-dd")
    private LocalDate comeDate;

    /**
     * 联系方式
     */
    @NotEmpty(message = "联系方式不能为空")
    @ApiModelProperty(required = true, value = "联系方式")
    private String telNum;

    @ApiModelProperty("所在城市")
    private String city;

    @ApiModelProperty("表显里程")
    private Integer mileage;

    @ApiModelProperty("首页封面")
    private String frontPic;

    @ApiModelProperty("详细图片，格式为JSON数组")
    private String mainPictures;

    @ApiModelProperty("交易地址")
    private String tradeAddr;

    @ApiModelProperty("留言")
    private String leaveMessage;

    @ApiModelProperty("车辆分类id")
    @NotNull(message = "车辆分类不能为空")
    private Long vehicleCategoryId;

    @ApiModelProperty("品牌分类id")
    private Long brandId;

    @ApiModelProperty("过户次数")
    private Integer transferNum;

    @ApiModelProperty("订金")
    private BigDecimal orderPrice;

}
